'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	//1通过 -1out
	let ok = event.value == "通过" ? 1 :-1;
	let res = await db.collection('post').doc(event.id).update({
		ok
	})
  return res
};
